package com.androway.domains;

import java.util.Date;

import com.google.gson.annotations.Expose;

public class BookReservation extends AbstractPersistentObject
{
	public static final int	STATUS_QUEUED	= 0;
	public static final int	STATUS_BOOKED	= 1;
	public static final int	STATUS_BORROWED	= 2;
	public static final int	STATUS_RETURNED	= 3;

	@Expose
	private User			borrower;
	@Expose
	private int				status;
	@Expose
	private Date			lastStatusUpdate;
	private Book			book;

	public User getBorrower()
	{
		return this.borrower;
	}

	public void setBorrower(User borrower)
	{
		this.borrower = borrower;
	}

	public int getStatus()
	{
		return this.status;
	}

	public void setStatus(int status)
	{
		this.status = status;
	}

	public Date getLastStatusUpdate()
	{
		return this.lastStatusUpdate;
	}

	public void setLastStatusUpdate(Date lastStatusUpdate)
	{
		this.lastStatusUpdate = lastStatusUpdate;
	}

	public Book getBook()
	{
		return this.book;
	}

	public void setBook(Book book)
	{
		this.book = book;
	}
}
